<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>注册页面</title>
    <link rel="stylesheet" href="/css/index.css">
    <link rel="stylesheet" type="text/css" href="/layui/css/layui.css"/>
</head>

<body>
<div class="sign_background">
    <form action="/member/register2" method="post" class="layui-form login-bottom">
    <div class="sign_background_in">
        <div class="sign_background_no1">
            <a href="index.html"><img src="/img/logo.jpg" alt=""></a>
        </div>
        <div class="sign_background_no2">注册小米帐号</div>
        <div class="sign_background_no3">
            <h4>国家/地区</h4>
            <div class="sign_background_no4">
                <select>
                    <!--<option value=""><input type="text"></option>-->
                    <option>中国</option>
                    <option>常用</option>
                    <option>中国台湾</option>
                    <option>中国香港</option>
                </select>
                <div class="sign_background_no4_in">
                    <div>∨</div>
                </div>
            </div>
            <p>成功注册帐号后，国家/地区将不能被修改</p>
            <p style="font-size: 18px;">手机号码</p>
            <div class="sign_background_no5">
                <div class="sign_no5_div1">
                    <select>
                        <option>+86</option>
                        <option>常用</option>
                        <option>中国</option>
                        <option>中国台湾</option>
                        <option>中国香港</option>
                    </select>
                </div>
                <input class="sign_no5_div2" type="text" name="tel" lay-verify="required" placeholder="请输入手机号码">
            </div>
            <!-- 注册按钮，转到注册详情页 -->
            <div class="sign_background_no6">
                    <button class="layui-btn layui-btn-fluid" lay-submit lay-filter="demo-reg">登录</button>
            </div>
        </div>
        <div class="sign_background_no7">注册帐号即表示您同意并愿意遵守小米 <span>用户协议</span>和<span>隐私政策</span></div>
    </div>
    <div class="sign_background_no8"><img src="/img/sign01.jpg" alt=""></div>
    </form>
</div>

<script src="/js/common.js"></script>
<script src="/layui/layui.js" charset="utf-8"></script>
<script th:inline="none">
    layui.use(['layer', 'form'], function () {
        var layer = layui.layer;
        var form = layui.form;
        var $ = layui.jquery;

        // 进行登录操作
        form.on('submit(login)', function (data) {
            data = data.field;
            if (data === '') {
                layer.msg('请输入手机号');
                return false;
            }
            //如果有值，则正常提交form表单到action地址
        });

    });
</script>

</body>
</html>